// @ts-nocheck
import axios from "axios";
import http from "../../utils/Axios";


interface IUploadImage {
  file: File;
}

export async function upLoadImage(prams: IUploadImage) {
  const formData = new FormData();
  formData.append("file", prams.file);

  return await axios.post("/api/seh-resource/attach/uploads", formData, {
    headers: {
      "Content-type": "multipart/form-data",
    },
  });
}

// 小区下拉
export async function residentialList() {
  return http<any>("get",`/app/keeper-special/charm/common/residentialList`);
}

// 用户认证
export async function authorize(parmas) {
  return http<any>("post","/app/keeper-special/charm/common/authorize",parmas);
}


